Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature][Connectors-v2-Paimon] Support Date&Time Data Type To Be Flink Int #6076

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

SimonChou12138
Copy link
Contributor

Purpose of this pull request

Implement Feature #6075

Does this PR introduce any user-facing change?

without

How was this patch tested?

e2e tests and unit test cases have been perfected

Check list

Copy link
Member

@Hisoka-X Hisoka-X left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SimonChou12138
Copy link
Contributor Author

@TyrantLucifer PTAL,thanks.

@EricJoy2048
Copy link
Member

@Carl-Zhou-CN PTAL.

break;
case TIME:
LocalTime time = (LocalTime) seaTunnelRow.getField(i);
String timeStr = time.format(DateTimeFormatter.ofPattern("HH:mm:ss"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to support milliseconds?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to DATA

LocalTime time = LocalTime.of(0, 0, 0);
binaryWriter.writeTimestamp(
i, Timestamp.fromLocalDateTime(date.atTime(time)), 3);
String dateStr = date.format(DateTimeFormatter.ofPattern("yyyy-MM-dd"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be more convenient to directly obtain the number of days from LocalDate?

@hailin0 hailin0 added the no update The owner doesn't provide further feedback. label Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
connectors-v2 feature New feature no update The owner doesn't provide further feedback.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants